package routers

import (
	"giv-vue-blog/api"
	"giv-vue-blog/middleware"
)

func (router RouterGroup) MenuRouter() {
	menuApi := api.ApiGroupApp.MenuApi
	router.POST("menu", middleware.JwtAuth(), menuApi.MenuCreateView)
	router.GET("menu", middleware.JwtAuth(), menuApi.MenuListView)
	router.GET("menu_name", middleware.JwtAuth(), menuApi.MenuNameView)
	router.DELETE("menu", middleware.JwtAuth(), menuApi.MenuDelView)
	router.PUT("menu/:id", middleware.JwtAuth(), menuApi.MenuUpdateView)
	router.GET("menu/:id", middleware.JwtAuth(), menuApi.MenuDetailView)
}
